package com.weiyuwqj.server.service.account.module.action;

import com.weiyuwqj.api.constant.DealType;
import com.weiyuwqj.api.util.IpUtils;

import java.util.Date;

/**
 * Created by pg on 15/11/28.
 */
public class BackCashDealAction extends AbstractDealAction {

    public BackCashDealAction() {
        log.setOperType(DealType.USER_CASH_RETURN);
    }

    @Override
    public void dealAccount() {
        log.setFrozen(log.getOperMoney().negate());
        log.setUsable(log.getOperMoney());
        log.setCash(log.getOperMoney());
        log.setAddip(IpUtils.get());
        log.setAddtime(new Date());
        log.setBudgetType(-1);
    }

}
